package com.kensaka.todo.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class TodoDatabaseHelper extends SQLiteOpenHelper {
	         
	private static final String DATABASE_NAME = "applicationdata";
	
	private static final int DATABASE_VERSION = 1;
	
	public TodoDatabaseHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
	}
	
	// Method is called during creation of the database
	@Override
	public void onCreate(SQLiteDatabase db ) {
		TodoTable.onCreate(db);
	}

	// Method is called during an update of the database,
	// e.g. if you increase the database version
	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		TodoTable.onUpgrade(db, oldVersion, newVersion);
	}

}
